package com.want;

import cn.dev33.satoken.SaManager;
import com.want.annotation.EnableWantClient;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.WebApplicationType;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.data.r2dbc.repository.config.EnableR2dbcRepositories;

/**
 * @author WangZhiJian
 * @since 2021/12/2 0002
 */
@Slf4j
@SpringBootApplication
@EnableR2dbcRepositories(basePackages = "com.want.repository")
@EnableWantClient(scanBasePackage = "com.want.api")
public class BlogFrontApplication {
    public static void main(String[] args) {
        new SpringApplicationBuilder(
                BlogFrontApplication.class)
                .web(WebApplicationType.REACTIVE).run(args);
        System.out.println("\n启动成功：Sa-Token配置如下：" + SaManager.getConfig());
        log.info("http://localhost:8084/index.html 博客前端服务启动完成！");
    }
}
